import { serverBase } from '@/axios/index';

/**
 * 首页
 */
/**
 * 查询异常统计
 * @param data
 * @returns {Promise<void>}
 */
export const postAbnormalStatistics = (data = {}) => serverBase.post('/sys/index/v1/abnormal/statistics', data, { loading: true });
/**
 * 查询今日信息统计
 * @param data
 * @returns {Promise<void>}
 */
export const postTodayInfoStatistics = (data = {}) => serverBase.post('/sys/index/v1/today/info/statistics', data, { loading: true });
/**
 * 查询概况统计
 * @param data
 * @returns {Promise<void>}
 */
export const postTodayOverviewStatistics = (data = {}) => serverBase.post('/sys/index/v1/today/overview/statistics', data, { loading: true });

/**
 * 异常记录
 */
/**
 * 查询异常记录分页
 * @param data
 * @returns {Promise<void>}
 */
export const postAbnormalRecordPage = (data = {}) => serverBase.post('/sys/abnormal/record/v1/page', data, { loading: true });
/**
 * 查询异常记录统计
 * @param data
 * @returns {Promise<void>}
 */
export const postAbnormalRecordStatistics = (data = {}) => serverBase.post('/sys/abnormal/record/v1/statistics', data, { loading: true });
/**
 * 提交异常记录
 * @param data
 * @returns {Promise<void>}
 */
export const postAbnormalSubmit = (data = {}) => serverBase.post('/sys/abnormal/record/v1/submit', data, { loading: true });

/**
 * 导出数据
 * @param data
 * @returns {Promise<void>}
 */
export const postAbnormalExport = (data = {}) => serverBase.getFile('/sys/abnormal/record/v1/export', data, { loading: true });


/**
 * 账号模块
 */

/**
 * 查询操作日志分页列表
 * @param data
 * @returns {Promise<void>}
 */
export const postOperLogPage = (data = {}) => serverBase.post('/sys/oper/log/v1/page', data, { loading: true });
/**
 * 查询账号分页列表
 * @param data
 * @returns {Promise<void>}
 */
export const postUserPage = (data = {}) => serverBase.post('/sys/user/v1/page', data, { loading: true });
/**
 * 新增账号
 * @param data
 * @returns {Promise<void>}
 */
export const postUserAdd = (data = {}) => serverBase.post('/sys/user/v1/add', data, { loading: true });
/**
 * 删除账号
 * @param data
 * @returns {Promise<void>}
 */
export const postUserDelete = (data = {}) => serverBase.post('/sys/user/v1/delete', data, { loading: true });
/**
 * 账号详情
 * @param data
 * @returns {Promise<void>}
 */
export const postUserDetail = (data = {}) => serverBase.post('/sys/user/v1/detail', data, { loading: true });
/**
 * 重置账号密码
 * @param data
 * @returns {Promise<void>}
 */
export const postUserPwdReset = (data = {}) => serverBase.post('/sys/user/v1/reset/pwd', data, { loading: true });
/**
 * 更新账号
 * @param data
 * @returns {Promise<void>}
 */
export const postUserUpdate = (data = {}) => serverBase.post('/sys/user/v1/update', data, { loading: true });
/**
 * 更新账号密码
 * @param data
 * @returns {Promise<void>}
 */
export const postUserUpdatePwd = (data = {}) => serverBase.post('/sys/user/v1/update/pwd', data, { loading: true });
/**
 * 更新账号状态
 * @param data
 * @returns {Promise<void>}
 */
export const postUserUpdateStatus = (data = {}) => serverBase.post('/sys/user/v1/update/status', data, { loading: true });





/**
 * 部门模块
 */
/**
 * 新增部门
 * @param data
 * @returns {Promise<void>}
 */
export const postDeptAdd = (data = {}) => serverBase.post('/sys/dept/v1/add', data, { loading: true });
/**
 * 删除部门
 * @param data
 * @returns {Promise<void>}
 */
export const postDeptDelete = (data = {}) => serverBase.post('/sys/dept/v1/delete', data, { loading: true });
/**
 * 查询部门详情
 * @param data
 * @returns {Promise<void>}
 */
export const postDeptDetail = (data = {}) => serverBase.post('/sys/dept/v1/detail', data, { loading: true });
/**
 * 部门列表
 * @param data
 * @returns {Promise<void>}
 */
export const postDeptList = (data = {}) => serverBase.post('/sys/dept/v1/list', data, { loading: true });
/**
 * 部门分页
 * @param data
 * @returns {Promise<void>}
 */
export const postDeptPage = (data = {}) => serverBase.post('/sys/dept/v1/page', data, { loading: true });
/**
 * 更新部门
 * @param data
 * @returns {Promise<void>}
 */
export const postDeptUpdate = (data = {}) => serverBase.post('/sys/dept/v1/update', data, { loading: true });


/**
* 职位模块
*/
/**
 * 新增职位
 * @param data
 * @returns {Promise<void>}
 */
export const postJobAdd = (data = {}) => serverBase.post('/sys/job/v1/add', data, { loading: true });
/**
 * 删除职位
 * @param data
 * @returns {Promise<void>}
 */
export const postJobDelete = (data = {}) => serverBase.post('/sys/job/v1/delete', data, { loading: true });
/**
 * 查询职位详情
 * @param data
 * @returns {Promise<void>}
 */
export const postJobDetail = (data = {}) => serverBase.post('/sys/job/v1/detail', data, { loading: true });
/**
 * 职位列表
 * @param data
 * @returns {Promise<void>}
 */
export const postJobList = (data = {}) => serverBase.post('/sys/job/v1/list', data, { loading: true });
/**
 * 职位分页
 * @param data
 * @returns {Promise<void>}
 */
export const postJobPage = (data = {}) => serverBase.post('/sys/job/v1/page', data, { loading: true });
/**
 * 更新职位
 * @param data
 * @returns {Promise<void>}
 */
export const postJobUpdate = (data = {}) => serverBase.post('/sys/job/v1/update', data, { loading: true });


/**
* 邮箱模块
*/
/**
 * 新增邮箱
 * @param data
 * @returns {Promise<void>}
 */
export const postEmailAdd = (data = {}) => serverBase.post('/sys/email/v1/add', data, { loading: true });
/**
 * 删除邮箱
 * @param data
 * @returns {Promise<void>}
 */
export const postEmailDelete = (data = {}) => serverBase.post('/sys/email/v1/delete', data, { loading: true });
/**
 * 查询邮箱详情
 * @param data
 * @returns {Promise<void>}
 */
export const postEmailDetail = (data = {}) => serverBase.post('/sys/email/v1/detail', data, { loading: true });
/**
 * 邮箱分页
 * @param data
 * @returns {Promise<void>}
 */
export const postEmailPage = (data = {}) => serverBase.post('/sys/email/v1/page', data, { loading: true });
/**
 * 更新邮箱
 * @param data
 * @returns {Promise<void>}
 */
export const postEmailUpdate = (data = {}) => serverBase.post('/sys/email/v1/update', data, { loading: true });

/**
* 菜单模块
*/
/**
 * 新增菜单
 * @param data
 * @returns {Promise<void>}
 */
export const postMenuAdd = (data = {}) => serverBase.post('/sys/menu/v1/add', data, { loading: true });
/**
 * 删除菜单
 * @param data
 * @returns {Promise<void>}
 */
export const postMenuDelete = (data = {}) => serverBase.post('/sys/menu/v1/delete', data, { loading: true });
/**
 * 查询菜单详情
 * @param data
 * @returns {Promise<void>}
 */
export const postMenuDetail = (data = {}) => serverBase.post('/sys/menu/v1/detail', data, { loading: true });
/**
 * 查询用户菜单权限列表
 * @param data
 * @returns {Promise<void>}
 */
export const postMenuPermissionList = (data = {}) => serverBase.post('/sys/menu/v1/permission/tree/list', data, { loading: true });
/**
 * 查询菜单树列表
 * @param data
 * @returns {Promise<void>}
 */
export const postMenuTreeList = (data = {}) => serverBase.post('/sys/menu/v1/tree/list', data, { loading: true });
/**
 * 查询菜单列表
 * @param data
 * @returns {Promise<void>}
 */
export const postMenuList = (data = {}) => serverBase.post('/sys/menu/v1/list', data, { loading: true });
/**
 * 更新菜单
 * @param data
 * @returns {Promise<void>}
 */
export const postMenuUpdate = (data = {}) => serverBase.post('/sys/menu/v1/update', data, { loading: true });


/**
* 字典模块
*/
/**
 * 新增字典
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDataAdd = (data = {}) => serverBase.post('/sys/dict/Data/v1/add', data, { loading: true });
/**
 * 删除字典
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDataDelete = (data = {}) => serverBase.post('/sys/dict/Data/v1/delete', data, { loading: true });
/**
 * 查询字典详情
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDataDetail = (data = {}) => serverBase.post('/sys/dict/Data/v1/detail', data, { loading: true });
/**
 * 查询字典数据列表
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDataList = (data = {}) => serverBase.post('/sys/dict/Data/v1/list', data, { loading: true });
/**
 * 查询字典分页列表
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDataPage = (data = {}) => serverBase.post('/sys/dict/Data/v1/page', data, { loading: true });
/**
 * 更新字典数据
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDataUpdate = (data = {}) => serverBase.post('/sys/dict/Data/v1/update', data, { loading: true });


/**
* 新增字典类型
* @param data
* @returns {Promise<void>}
*/
export const postDictAdd = (data = {}) => serverBase.post('/sys/dict/type/v1/add', data, { loading: true });
/**
 * 删除字典类型
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDelete = (data = {}) => serverBase.post('/sys/dict/type/v1/delete', data, { loading: true });
/**
 * 查询字典类型详情
 * @param data
 * @returns {Promise<void>}
 */
export const postDictDetail = (data = {}) => serverBase.post('/sys/dict/type/v1/detail', data, { loading: true });
/**
 * 查询字典类型分页列表
 * @param data
 * @returns {Promise<void>}
 */
export const postDictPage = (data = {}) => serverBase.post('/sys/dict/type/v1/page', data, { loading: true });
/**
 * 更新字典类型数据
 * @param data
 * @returns {Promise<void>}
 */
export const postDictUpdate = (data = {}) => serverBase.post('/sys/dict/type/v1/update', data, { loading: true });




/**
* 财务通知
*/
/**
* 查询财务通知分页列表
* @param data
* @returns {Promise<void>}
*/
export const postEmailLogPage = (data = {}) => serverBase.post('/sys/email/log/v1/page', data, { loading: true })


/**
* 认款入口
*/
/**
* 弹窗认款
* @param data
* @returns {Promise<void>}
*/
export const postFinancialRecBillAdd = (data = {}) => serverBase.post('/sys/financial/receipt/bill/v1/add', data, { loading: true })
/**
* 查询弹窗认款详情
* @param data
* @returns {Promise<void>}
*/
export const postFinancialRecBillAleDetail = (data = {}) => serverBase.post('/sys/financial/receipt/bill/v1/alert/detail', data, { loading: true })
/**
* 认款删除
* @param data
* @returns {Promise<void>}
*/
export const postFinancialRecBillConDelete = (data = {}) => serverBase.post('/sys/financial/receipt/bill/v1/confirm/delete', data, { loading: true })
/**
* 来款删除
* @param data
* @returns {Promise<void>}
*/
export const postFinancialRecBillDelete = (data = {}) => serverBase.post('/sys/financial/receipt/bill/v1/delete', data, { loading: true })
/**
* 查询修改认款详情
* @param data
* @returns {Promise<void>}
*/
export const postFinancialRecBillDetail = (data = {}) => serverBase.post('/sys/financial/receipt/bill/v1/detail', data, { loading: true })
/**
* 查询认账分页列表
* @param data
* @returns {Promise<void>}
*/
export const postFinancialRecBillPage = (data = {}) => serverBase.post('/sys/financial/receipt/bill/v1/page', data, { loading: true })
/**
* 修改认款
* @param data
* @returns {Promise<void>}
*/
export const postFinancialRecBillUpdate = (data = {}) => serverBase.post('/sys/financial/receipt/bill/v1/update', data, { loading: true })


/**
* 来账导入
*/
/**
* 保存导入数据
* @param data
* @returns {Promise<void>}
*/
export const postFinancialAddImport = (data = {}) => serverBase.post('/sys/financial/receipt/v1/add/import', data, { loading: true })
/**
* 导入数据
* @param data
* @returns {Promise<void>}
*/
export const postFinancialImportData = (data = {}) => serverBase.post('/sys/financial/receipt/v1/import/data', data, { loading: true })
/**
* 导入模板下载
* @param data
* @returns {Promise<void>}
*/
export const postFinancialTempDownload = (data = {}) => serverBase.fetchFile('/sys/financial/receipt/v1/template/download', data, { loading: true })


/**
* 信管应收表
*/
/**
* 信管应收表新增
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsAdd = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/add', data, { loading: true })
/**
* 信管应收表删除
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsDelete = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/delete', data, { loading: true })
/**
* 信管应收表详情
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsDetail = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/detail', data, { loading: true })
/**
* 信管应收表导出数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsExport = (data = {}) => serverBase.getFile('/sys/accounts/table/ims/v1/export', data, { loading: true })
/**
* 信管应收表导入数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsImportData = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/import/data', data, { loading: true })
/**
* 查询逾期数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsOverdueData = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/overdue/data/list', data, { loading: true })
/**
* 查询信管应收表分页列表
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsPage = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/page', data, { loading: true })
/**
* 查询预测到款
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsPay = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/predicted/payment', data, { loading: true })
/**
* 预测到款导出数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsPayExport = (data = {}) => serverBase.getFile('/sys/accounts/table/ims/v1/predicted/payment/export', data, { loading: true })
/**
* 查询预测到款分页数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsPayPage = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/predicted/payment/page', data, { loading: true })
/**
* 查询预测到款-顶部
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsPayTop = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/predicted/payment/top', data, { loading: true })
/**
* 项目明细
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsPrjList = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/project/item/list', data, { loading: true })
/**
* 项目明细更新
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsPrjUpdate = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/project/item/update', data, { loading: true })
/**
* 到款数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsRecData = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/receive/data/list', data, { loading: true })
/**
* 信管应收表模板下载
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsTemDownload = (data = {}) => serverBase.fetchFile('/sys/accounts/table/ims/v1/template/download', data, { loading: true })
/**
* 信管应收表修改
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableImsUpdate = (data = {}) => serverBase.post('/sys/accounts/table/ims/v1/update', data, { loading: true })











/**
* 国际应收表
*/
/**
* 国际应收表新增
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlAdd = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/add', data, { loading: true })
/**
* 国际应收表删除
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlDelete = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/delete', data, { loading: true })
/**
* 国际应收表详情
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlDetail = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/detail', data, { loading: true })
/**
* 国际应收表导出数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlExport = (data = {}) => serverBase.getFile('/sys/accounts/table/intl/v1/export', data, { loading: true })
/**
* 国际应收表导入数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlImportData = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/import/data', data, { loading: true })
/**
* 查询逾期数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlOverdueData = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/overdue/data/list', data, { loading: true })
/**
* 查询国际应收表分页列表
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlPage = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/page', data, { loading: true })
/**
* 预测到款
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlPay = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/predicted/payment', data, { loading: true })
/**
* 预测到款导出数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlPayExport = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/predicted/payment/export', data, { loading: true })
/**
* 查询预测到款分页数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlPayPage = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/predicted/payment/page', data, { loading: true })
/**
* 查询预测到款-顶部
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlPayTop = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/predicted/payment/top', data, { loading: true })
/**
* 项目明细
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlPrjList = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/project/item/list', data, { loading: true })
/**
* 项目明细更新
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlPrjUpdate = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/project/item/update', data, { loading: true })
/**
* 国际应收表模板下载
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlTemDownload = (data = {}) => serverBase.fetchFile('/sys/accounts/table/intl/v1/template/download', data, { loading: true })
/**
* 国际应收表修改
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableIntlUpdate = (data = {}) => serverBase.post('/sys/accounts/table/intl/v1/update', data, { loading: true })


/**
* 客服应收表
*/
/**
* 客服应收表新增
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsAdd = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/add', data, { loading: true })
/**
* 客服应收表删除
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsDelete = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/delete', data, { loading: true })
/**
* 客服应收表详情
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsDetail = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/detail', data, { loading: true })
/**
* 客服应收表导出数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsExport = (data = {}) => serverBase.getFile('/sys/accounts/table/cs/v1/export', data, { loading: true })
/**
* 客服应收表导入数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsImportData = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/import/data', data, { loading: true })
/**
* 查询逾期数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsOverdueData = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/overdue/data/list', data, { loading: true })
/**
* 查询客服应收表分页列表
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsPage = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/page', data, { loading: true })
/**
* 预测到款
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsPay = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/predicted/payment', data, { loading: true })
/**
* 预测到款导出数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsPayExport = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/predicted/payment/export', data, { loading: true })
/**
* 查询预测到款分页数据
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsPayPage = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/predicted/payment/page', data, { loading: true })
/**
* 查询预测到款-顶部
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsPayTop = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/predicted/payment/top', data, { loading: true })
/**
* 项目明细
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsPrjList = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/project/item/list', data, { loading: true })
/**
* 项目明细更新
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsPrjUpdate = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/project/item/update', data, { loading: true })
/**
* 客服应收表模板下载
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsTemDownload = (data = {}) => serverBase.fetchFile('/sys/accounts/table/cs/v1/template/download', data, { loading: true })
/**
* 客服应收表修改
* @param data
* @returns {Promise<void>}
*/
export const postAccountsTableCsUpdate = (data = {}) => serverBase.post('/sys/accounts/table/cs/v1/update', data, { loading: true })






